<template>
<div>
<mt-swipe :auto="4000">
  <!-- <mt-swipe-item v-for="item in swipPicList" :key="item"></mt-swipe-item> -->
  <mt-swipe-item><h1>1</h1></mt-swipe-item>
  <mt-swipe-item><h1>2</h1></mt-swipe-item>
  <mt-swipe-item><h1>3</h1></mt-swipe-item>
</mt-swipe>

		        <ul class="mui-table-view mui-grid-view mui-grid-9">
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><router-link to="/home/newslist">
		                    <img src="../../images/menu1(1).png" alt="">
		                    <div class="mui-media-body">新闻资讯</div></router-link></li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><router-link to="#">
		                    <img src="../../images/menu2.png" alt=""><span class="mui-badge">5</span>
		                    <div class="mui-media-body">Email</div></router-link></li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><router-link to="#">
		                    <img src="../../images/menu3.png" alt="">
		                    <div class="mui-media-body">Chat</div></router-link></li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><router-link to="#">
		                    <img src="../../images/menu4.png" alt="">
		                    <div class="mui-media-body">location</div></router-link></li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><router-link to="#">
		                    <img src="../../images/menu5.png" alt="">
		                    <div class="mui-media-body">Search</div></router-link></li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><router-link to="#">
		                    <img src="../../images/menu6.png" alt="">
		                    <div class="mui-media-body">Phone</div></router-link></li>
		        </ul> 
		
</div>

</template>  

<style lang="scss" scoped>
  .mint-swipe{
    height:200px;
  }
  .mint-swipe-item{
      &:nth-child(1){
      background-color: blue;
      };
      &:nth-child(2){
      background-color: red;
      };
      &:nth-child(3){
      background-color: green;
      };
  }
  .mui-grid-view.mui-grid-9{
    background-color: white;
    border: none;
    img{
      width: 60px;
      height: 60px;
    }
  }
  .mui-grid-view.mui-grid-9 .mui-table-view-cell{
    border: 0;
  }
</style>

<script>
import {Toast} from "mint-ui"

export default{
  data(){
    return{
      swipPicList:[]
    }
  },
  created(){
    // this.getSwipPic()
  },
  methods:{
    getSwipPic(){
      this.$http.get("http://vue.studtit.io/api/getlunbo").then(result=>{
        if(result.body.status===0){
          this.swipPicList=result.body.message;
          // Toast("图片加载失败")
        }else{
          Toast("图片加载失败")
        }
      })
    }
  }
}
</script>